<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:86:"/www/wwwroot/schoolnx.nxers.com/public/../application/admin/view/exam/examPreview.html";i:1582090026;s:66:"/www/wwwroot/schoolnx.nxers.com/application/admin/view/iframe.html";i:1583476352;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css">
    <link rel="stylesheet" href="/static/default/css/base.css">
    <link rel="stylesheet" href="/static/default/css/fonts.css">
    
</head>
<body class="layui-layout-iframe">

<form action="<?php echo request()->url(); ?>" class="layui-form" method="post">
<div style="padding: 20px;">
    <div class="layui-card">
        <div class="layui-collapse">
            <?php if(is_array($exam['examsetting']['questype']) || $exam['examsetting']['questype'] instanceof \think\Collection || $exam['examsetting']['questype'] instanceof \think\Paginator): if( count($exam['examsetting']['questype'])==0 ) : echo "" ;else: foreach($exam['examsetting']['questype'] as $key=>$v): ?>
            <div class="layui-colla-item" id="tx_td_2">
                <h2 class="layui-colla-title" id="question_type_<?php echo $key; ?>"><?php echo get_question_type($key); ?><i class="layui-icon layui-colla-icon"></i></h2>
                <div class="layui-colla-content layui-show">
                    <?php if(get_question_mark($key) == 'TiMao'): if(is_array($exam['examquestions'][$key]) || $exam['examquestions'][$key] instanceof \think\Collection || $exam['examquestions'][$key] instanceof \think\Paginator): if( count($exam['examquestions'][$key])==0 ) : echo "" ;else: foreach($exam['examquestions'][$key] as $k=>$v): ?>
                        <p style="font-weight: bold; font-size: 15px;"><?php echo get_question_info($v,"question"); ?></p>
                        <?php if(is_array($exam['subQuestions'][$v]) || $exam['subQuestions'][$v] instanceof \think\Collection || $exam['subQuestions'][$v] instanceof \think\Paginator): if( count($exam['subQuestions'][$v])==0 ) : echo "" ;else: foreach($exam['subQuestions'][$v] as $k=>$vv): ?>
                        <div id="question_<?php echo $vv; ?>" class="mt10">
                            <p style="font-weight: bold; font-size: 15px;"><?php echo get_question_info($vv,"question"); ?></p>
                            <?php switch(get_question_mark(get_question_info($name=$vv,"questiontype"))): case "SingleSelect": ?>
                            <div class="mt10" style="margin-left: 20px;">
                                <?php echo get_question_info($vv,"questionselect"); ?>
                                <div>
                                    <input type="radio" name="<?php echo $vv; ?>" value="A" title="A">
                                    <input type="radio" name="<?php echo $vv; ?>" value="B" title="B">
                                    <input type="radio" name="<?php echo $vv; ?>" value="C" title="C">
                                    <input type="radio" name="<?php echo $vv; ?>" value="D" title="D">
                                </div>
                            </div>
                            <?php break; case "MultiSelect": ?>
                            <div class="mt10" style="margin-left: 20px;">
                                <?php echo get_question_info($vv,"questionselect"); ?>
                                <div>
                                    <?php echo get_multiSelect($vv); ?>
                                </div>
                            </div>
                            <?php break; case "FillInBlanks": ?>
                            <div class="mt10"　style="margin-left: 20px;">
                                <input type="text" name="<?php echo $vv; ?>" size="16" class="input_Exam" style="width:150px;border:0px;border-bottom:#000000 1px solid;" value="" onchange="check_index(2);">
                            </div>
                            <?php break; case "TrueOrfalse": ?>
                            <div class="mt10" style="margin-left: 20px;">
                                <p>
                                <div class="mt10">
                                    <input type="radio" name="<?php echo $vv; ?>" value="A" title="正确">
                                    <input type="radio" name="<?php echo $vv; ?>" value="B" title="错误">
                                </div>
                                </p>
                            </div>
                            <?php break; case "ShortAnswer": ?>
                            <div style="margin-left: 20px;">
                                <input type="text" name="<?php echo $vv; ?>" size="16" class="input_Exam" style="width:150px;border:0px;border-bottom:#000000 1px solid;" value="" onchange="check_index(2);">
                            </div>
                            <?php break; endswitch; ?>
                        </div>
                        <?php endforeach; endif; else: echo "" ;endif; endforeach; endif; else: echo "" ;endif; else: if(is_array($exam['examquestions'][$key]) || $exam['examquestions'][$key] instanceof \think\Collection || $exam['examquestions'][$key] instanceof \think\Paginator): if( count($exam['examquestions'][$key])==0 ) : echo "" ;else: foreach($exam['examquestions'][$key] as $k=>$vv): ?>
                    <div id="question_<?php echo $vv; ?>" class="mt10">
                        <p style="font-weight: bold; font-size: 15px;"><?php echo get_question_info($vv,"question"); ?></p>
                        <?php switch(get_question_mark(get_question_info($name=$vv,"questiontype"))): case "SingleSelect": ?>
                        <div class="mt10" style="margin-left: 20px;">
                            <?php echo get_question_info($vv,"questionselect"); ?>
                            <div>
                                <input type="radio" name="<?php echo $vv; ?>" value="A" title="A">
                                <input type="radio" name="<?php echo $vv; ?>" value="B" title="B">
                                <input type="radio" name="<?php echo $vv; ?>" value="C" title="C">
                                <input type="radio" name="<?php echo $vv; ?>" value="D" title="D">
                            </div>
                        </div>
                        <?php break; case "MultiSelect": ?>
                        <div class="mt10" style="margin-left: 20px;">
                            <?php echo get_question_info($vv,"questionselect"); ?>
                            <div>
                                <?php echo get_multiSelect($vv); ?>
                            </div>
                        </div>
                        <?php break; case "FillInBlanks": ?>
                        <div class="mt10"　style="margin-left: 20px;">
                            <input type="text" name="<?php echo $vv; ?>" size="16" class="input_Exam" style="width:150px;border:0px;border-bottom:#000000 1px solid;" value="" onchange="check_index(2);">
                        </div>
                        <?php break; case "TrueOrfalse": ?>
                        <div class="mt10" style="margin-left: 20px;">
                            <p>
                            <div class="mt10">
                                <input type="radio" name="<?php echo $vv; ?>" value="A" title="正确">
                                <input type="radio" name="<?php echo $vv; ?>" value="B" title="错误">
                            </div>
                            </p>
                        </div>
                        <?php break; case "ShortAnswer": ?>
                        <div style="margin-left: 20px;">
                            <input type="text" name="<?php echo $vv; ?>" size="16" class="input_Exam" style="width:150px;border:0px;border-bottom:#000000 1px solid;" value="" onchange="check_index(2);">
                        </div>
                        <?php break; endswitch; ?>
                    </div>
                    <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                </div>
            </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>
</form>

<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/libs/common/jquery.min.js"></script>
<script src="/static/libs/common/common.js"></script>
<script src="https://cdn.bootcss.com/stickyNavbar.js/1.3.5/jquery.stickyNavbar.min.js"></script>

</body>
</html>
